package com.wisdom.core.annotation;

import com.wisdom.core.enums.LoadBalanceStrategy;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @description: <负载均衡注解>
 * @author: Leo
 * @date: 2021-08-29 16:15
 */
@Component
@Target(ElementType.TYPE)
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface WisdomLoadBalance {

    @AliasFor(annotation = Component.class)
    String value() default "";

    LoadBalanceStrategy strategy() default LoadBalanceStrategy.RANDOM;
}
